package com.github.yoojia.flow.impl;

import com.github.yoojia.flow.Context;
import com.github.yoojia.flow.Event;
import com.github.yoojia.flow.VirtualDevice;

/**
 * @author 陈哈哈 yoojiachen@gmail.com
 */
public class SimulatePongDevice extends VirtualDevice {

    @Override
    public void onStart() {

    }

    @Override
    public void onStop() {

    }

    @Override
    public Event handleEvent(Context context, Event request) {
        return createResponseEvent(
                request,
                request.topic,
                "PONG".getBytes());
    }

}
